﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PassportsModel
{
    [DataContract]
    public class PersonDetails
    {
        [DataMember]
        public string FamilyName { get; set; }
        [DataMember]
        public string GivenNames { get; set; }
        [DataMember]
        public DateTime BirthDate { get; set; }
        [DataMember]
        public string CityOfBirth { get; set; }
        [DataMember]
        public string CountryOfBirth { get; set; }
        [DataMember]
        public ContactDetails ContactDetails { get; set; }
        [DataMember]
        public eGender Gender { get; set; }

        public PersonDetails(eGender gender)
        {
            this.ContactDetails = new ContactDetails();
            this.Gender = gender;
        }

        public PersonDetails()
        {
            this.ContactDetails = new ContactDetails();
            this.Gender = eGender.Female;
        }
    }
}
